<template>
  <div>
    <div>
      <p style="font-size: 200px">404</p>
    </div>
    <div>
      <el-button @click="goLogin()">返回主页</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "Error",
  methods: {
    goLogin() {
      if (localStorage.getItem("ismobile") === "1") {
        this.$router.push({
          path: "/web/login"
        });
      } else {
        this.$router.push({
          path: "/wap/login"
        });
      }
    }
  }
};
</script>

<style scoped></style>
